<template>
  <div class="tabbar">
    <router-view />
    <van-tabbar v-model="active" style="z-index:10000">
      <van-tabbar-item to="/tabbar/home" icon="home-o">首页</van-tabbar-item>
      <van-tabbar-item to="/tabbar/topic" icon="label-o">专题</van-tabbar-item>
      <van-tabbar-item to="/tabbar/category" icon="apps-o">分类</van-tabbar-item>
      <van-tabbar-item to="/tabbar/cart" icon="cart-o">购物车</van-tabbar-item>
      <van-tabbar-item to="/tabbar/user" icon="user-o">我的</van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script>
export default {
  data() {
    return {
         active: 0,
    };
  },
};
</script>
 
<style lang = "less" scoped>
.tabbar{
    height: 100vh;
    background-color: rgb(255, 255, 255);
}
</style>